package com.nine.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nine.dao.RolePermissionMapper;
import com.nine.entity.RolePermission;
import com.nine.service.RolePermissionService;

@Service
@Transactional
public class RolePermissionServiceImpl implements RolePermissionService {
	
	@Autowired
	private RolePermissionMapper rolePermissionMapper;
	
	//批量添加角色权限
	@Override
	public Integer insertMore(List<RolePermission> rolePermission) {
		// TODO Auto-generated method stub
		return rolePermissionMapper.insertMore(rolePermission);
	}
	
	//批量删除角色权限
	@Override
	public Integer delMoreRolePermission(Integer[] permissionId, Integer roleId) {
		// TODO Auto-generated method stub
		return rolePermissionMapper.delMoreRolePermission(permissionId, roleId);
	}

}
